import request from '@/utils/request'

// 查询疫苗列表
export function listVaccine(query) {
  return request({
    url: '/dgw/vaccine/list',
    method: 'get',
    params: query
  })
}

// 查询疫苗详细
export function getVaccine(id) {
  return request({
    url: '/dgw/vaccine/' + id,
    method: 'get'
  })
}

// 新增疫苗
export function addVaccine(data) {
  return request({
    url: '/dgw/vaccine',
    method: 'post',
    data: data
  })
}

// 修改疫苗
export function updateVaccine(data) {
  return request({
    url: '/dgw/vaccine',
    method: 'put',
    data: data
  })
}

// 删除疫苗
export function delVaccine(id) {
  return request({
    url: '/dgw/vaccine/' + id,
    method: 'delete'
  })
}

// 导出疫苗
export function exportVaccine(query) {
  return request({
    url: '/dgw/vaccine/export',
    method: 'get',
    params: query
  })
}
export function querySum(query){
  return request({
    url:'/dgw/vaccine/listSum',
    method:'get',
    params:query
  })

}
